<?php

App::import('Model','config.BaseConfig');
class EventConfig extends BaseConfig
{
	var $name = 'EventConfig';
	var $actsAs = array('Config.StartupConfig');
	var $validate = array();
				
	var $cache = true;
	
	var $fieldProperties = array(
			'enable_events'=>array(
					'label'=>'Enable Events Functionality',
					'group'=>array('add'),
					'type'=>'checkbox',
			),
			'enable_moderation'=>array(
					'label'=>'Enable Moderation',
					'group'=>array('add'),
					'type'=>'checkbox',
					'default'=>'1'
			),
			'onlyOwnerCanAddEvent'=>array(
					'label'=>"Only listing owner can post event(s)",
					"type"=>"checkbox",
					"group"=>array("add","edit")					
			),
			'allowPosterEdit'=>array(
					'label'=>"Allow poster to edit his/her event(s)",
					"type"=>"checkbox",
					"group"=>array("add","edit"),
			),
			'allowPosterDelete'=>array(
					'label'=>"Allow poster to delete his/her event(s)",
					"type"=>"checkbox",
					"group"=>array("add","edit")
			)
	);

	function initialize()
	{
		$this->setFieldProperties('flay_text', array(
			'label' => 'Flay description while exporting',
			'options'=>array(__("Never"),50=>"50",100=>"100",250=>"200",500=>"500",750=>"750",1000=>"1000",2000=>"2000",5000=>"5000"),
			'group'=> array("add"),
			'type' => "select"
		));
		
		parent::initialize();
	}
}
?>